package com.ddstation.onsitelaw.entity.auditentity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Table(name = "dt_invs_rule_warning")
@Getter
@Setter
public class DtInvsRuleWarningEntity {
    @Id
    private Integer id;

    /**
     * 卫监id
     */
    @Column(name = "invs_id")
    private String invsId;

    /**
     * 规则类型 0：处方规则  1：台账规则
     */
    @Column(name = "rule_type")
    private Integer ruleType;

    /**
     * 规则名称
     */
    @Column(name = "rule_name")
    private String ruleName;

    /**
     * 规则描述
     */
    @Column(name = "rule_desc")
    private String ruleDesc;

    /**
     * 规则id，对应表ma_data_dictionary字段code_category_id=pres_rule  ,tz_rule
     */
    @Column(name = "rule_id")
    private String ruleId;
    /**
     * 是否预警 0：不预警（仅卫监提醒，医疗机构不提醒）  1：预警（卫监跟医疗机构后端都提醒）
     */
    @Column(name = "is_warning")
    private Integer isWarning;

    /**
     * 是否有白名单 0：没有白名单  1：有医疗机构白名单  2：有诊断类型白名单
     */
    @Column(name = "is_white")
    private Integer isWhite;
    /**
     * 操作人ID
     */
    @Column(name = "operator_id")
    private String operatorId;

    /**
     * 操作人姓名
     */
    @Column(name = "operator_name")
    private String operatorName;

    @Column(name = "update_tm")
    private Date updateTm;


    @Column(name = "createTm")
    private Date createTm;

    private List<DtInvsRuleWhiteInstitutionEntity> ruleWhite;

    private List<MaInvsIcd10SectionEntity> icd10Section;

    private String institutions;

    private String diagnosis;

    private String diagnosisIcd10;

    private Integer isIcd10;
}